﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LogisticsModel
{
    public class Truck
    {
        /// <summary>
        /// 车队ID
        /// </summary>
        private int _truckID;
        public int TruckID
        {
            get
            {
                return _truckID;
            }
            set
            {
                _truckID = value;
            }
        }
        /// <summary>
        /// 车辆编号
        /// </summary>
        private string _Number;
        public string Number
        {
            get
            {
                return _Number;
            }
            set
            {
                _Number = value;
            }
        }
        /// <summary>
        /// 购买时间
        /// </summary>
        private DateTime _BuyDate;
        public DateTime BuyDate
        {
            get
            {
                return _BuyDate;
            }
            set
            {
                _BuyDate = value;
            }
        }
        /// <summary>
        /// 车辆类型
        /// </summary>
        private string _Type;
        public string Type
        {
            get
            {
                return _Type;
            }
            set
            {
                _Type = value;
            }
        }
        /// <summary>
        /// 长度
        /// </summary>
        private string _Length;
        public string Length
        {
            get
            {
                return _Length;
            }
            set
            {
                _Length = value;
            }
        }
        /// <summary>
        /// 吨位
        /// </summary>
        private int _Tonnage;
        public int Tonnage
        {
            get
            {
                return _Tonnage;
            }
            set
            {
                _Tonnage = value;
            }
        }
        /// <summary>
        /// 车队ID
        /// </summary>
        private int _FK_TeamID;
        public int FK_TeamID
        {
            get
            {
                return _FK_TeamID;
            }
            set
            {
                _FK_TeamID = value;
            }
        }
        /// <summary>
        /// 车辆状态
        /// </summary>
        private Byte _State;
        public Byte State
        {
            get
            {
                return _State;
            }
            set
            {
                _State = value;
            }
        }
        public string StateString
        {
            get
            {
                if (State == 1)
                {
                    return "承运中";
                }
                else
                {
                    return "空闲中";
                }
            }
            set { }
        }
        /// <summary>
        /// 备注信息
        /// </summary>
        private string _Remark;
        public string Remark
        {
            get
            {
                return _Remark;
            }
            set
            {
                _Remark = value;
            }
        }
        /// <summary>
        /// 添加时间
        /// </summary>
        private DateTime _CheckInTime;
        public DateTime CheckInTime
        {
            get
            {
                return _CheckInTime;
            }
            set
            {
                _CheckInTime = value;
            }
        }
        /// <summary>
        /// 数据记录状态（0：使用中，1：该记录已删除）
        /// </summary>
        private Byte _IsDelete;
        public Byte IsDelete
        {
            get
            {
                return _IsDelete;
            }
            set
            {
                _IsDelete = value;
            }
        }
        /// <summary>
        /// 更新时间
        /// </summary>
        private DateTime _AlterTime;
        public DateTime AlterTime
        {
            get
            {
                return _AlterTime;
            }
            set
            {
                _AlterTime = value;
            }
        }
        private string _TeamName;
        public string TeamName
        {
            get
            {
                return _TeamName;
            }
            set
            {
                _TeamName = value;
            }
        }
        private string _DriverName;
        public string DriverName
        {
            get
            {
                return _DriverName;
            }
            set
            {
                _DriverName = value;
            }
        }
    }
}
